package service;

import pojo.User;

import java.util.List;

public interface UserService {

    //定义行为，接口不用实现
    //eg.user
    //1.注册
    int addUser(User user);
    //2.查询
    List<User> findAll();
    //3.编辑
    User findById(Integer id);

    int updateUser(User user);

    int deleteUserById(Integer id);
    //4.删除
    //5.禁用
    //6.校验
    //.................
}
